Fix some mistakes.

- ensure params are tested properly.
- ensure cut didn't barf out ":Filename too long"
  - this only seems to happen when the script is called from within fish.
  - i dont really plan on digging deeply into it.
  - bail out if the excess string is found.