Fix Cannot find script file errors in Windows 11/10