Strip the trailing slash that the shell might add because of tab completion. Closes #45.