Fixed file opening in Windows