rolefromfile: ensuring file name matches name provided in file