Remove trailing slash preventing media from being packaged