Fixed hardcoded temp dir path, updated production API URL