REALPATH was unnecessary and results in resolving symlinks in the target, although the working directory will not have its symlink resolved. This results in very strange paths from the base directory (which is the working directory) to the target.