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.