Fixed bugs in glacier command line argument parsing