A portable bash implementation of `realpath`.