fix handling PORT environment variable