Remove trailing `/` if provided by user

We currently exit with an error but better to handle it instead of throwing an error.