replace FULLPATH and SPLITPTH with non-proprietary alternative