fix for 1.5 programmingerror does not exist
bug solved for MEDIA_ROOT without trailing slash, better error handling if wrong settings are defined