Fixes handling of relative file modules (eg './myMod').