Fixes the build bugs, adds the isBuild template var