[#224] build script updated to not symlink even if the path is directory not just symlink