fix command line options for shell commands