Fix the port scripts
Argv and env working