Fiddling Around with Parsing Flags in Bash