Fixed authentication in maps/media management scripts