attempt to cleanup MEDIA_ROOT and DIRECTORY, see #167