Updated the code for building Jar with Main Class field in manifest.mf
file.