Parse command line properly