always try %*ENV<HOME> first like P5 version, thus supporting darwin