Fixed the test install from local directory with symlinks to directories

The current Travis build fail for the same reason as #2045.