Single makefile and shell-script for all scenarios

Its a simple change to explain. But it required changes everywhere - in Rails, 
Java and here