Fix bug in command line parsing