Use shorter root path in script building Slicer trunk

This is an attempt to address the "too much argument" error passed
to the meta object compiler on Linux.

For sake of consistency, scripts for windows, MacOSx and Linux have
been updated.