Fix issue with media url and media root settings