Fixed file paths to work on Windows; added sanity check to prevent errors when Desktop is not supported.