Fix bug with symbolic links