General improvements and bug fixes.

- updated git porcelain commands to deal with new output format
- improved comments and output messages
- improved functionality when building for pre-3.0 (no plugins) and post-3.0
updating branch with master
check for empty PLUGIN_TAG before trying to create a branch from that tag