Avoid git warning when cloning repo and specifying a git hash code in branch var

Warning is :
warning: Remote branch 417b9918f9bbecf07a2311a04ea72faa937b17c9 not found in upstream origin, using HEAD instead
Merge pull request #534 from bpaquet/master

Avoid git warning when cloning repo and specifying a git hash code in branch variable.
Use the first non-option from ARGV as the env name
Merge pull request #538 from jmazzi/bugfix/multistage_env_detection

Fix multistage argument parsing.