File dialog now uses environment variables when opening a file.