fixed commandline parser issue with -g in directory name