Fixing paths to use temp