remove leading slash in media dir