[modutils] fix python3.3 crash on file_from_modpath. Closes #137244 [applied]