Fixed the build script: it did not work properly if the sites/default directory is a symlink.

The backup - restore during an upgrade was broken.