Adds the ability to specify path

This update allows an explicit path to be set rather
than purely relying on the TEMP environment variable.
Changes PATH to proper case

This changes PATH to Path
Land #3321, PATH for windows/local/persistence
Fix unquoted path in cleanup script
Land #3322, fix persistence cleanup script