Changed two realpath() calls.