Updating the build for the latest BRJS folder structure. Also fixed a potential problem with submodules being write locked when checking out.