remove all the trailing slashes from module names