Makes path relative (in error reporting) to model given as input