work around missing "realpath" command
support local zsh files