Optimize using is_msys_exec function to use it only once.
Create copies of files that not fs_devices.