Fix bug when using separate build directory to create symbolic link