Fix file permissions for api_server script