fixing deploy argument parsing