A portable, pure shell implementation of realpath