change work path for git source
fix syntax error when flag not specified
change -h flag to -o flag so it's not confused for a usage flag