fixed memex command line parsing