changes module.path to not include trailing slash