Remove trailing slashes from media folders