Correcting wrong grep for media_dir