Added realpath and HEAD.