Bug with spaces in temp path fixed