Fixed various regressions with symbolic links