Fix to mocha script and added git branches support to ansible