Fix file not opening if spaces in path