remove_filename_from_path utility
texture paths taken relative to the map dir