fixed path lookup if rexfile was called from a different path