Also pass arguments Main & FileSelectParams to file_expand_directory instead of the context as this is a lower level function thats only ever called when these values are known & doesn't run the appropriate refresh functions needed to be called on it's own.