reduced code duplicity by using a tab factory
moved all build scripts to the build directory