Remove unnecessary cast to file path

Fix a file path issue on Windows