Fixed unable-to-create-tempfile bug for cases where the user lacks permission to execute the current directory