make path check in base.t os-agnostic