Don't modify @INC

$dir is an alias, so use a copy before trying to resolve symlinks.