On OSX, the shell detection code may get a preceding dash, like "-bash". This adds a filter to remove it.