fixed buildscripts in case of missing build directory