getting map path value and matching it to file name