Updated get_realpath - better comments.