Fix minor bugs with symlinks