Strip trailing slash from cmdline paths