Prunes trailing slash for `base` and `out` command line arguments
Prunes preceding slash from `module.name` when creating sidebar navigation headers