Handles situation when the output is `/bin/shell- args...`. First strip away the arguments, then the trailing dash.