Fix invalid working directory crash by using system temp directory for temp dl