fixing build scripts so that they can run from different then cc3d git directory