removed trailing slashes from paths