Don't generate a POT file for WPCOM builds.
Use grunt-text-replace for replacing version numbers instead of the custom routine.
Allow for a particular build target to be run.

Specify the target as a CLI flag. For example: grunt build --{target}
Revert the makepot task config. The cwd is set during the build task.
Test for the package archive in the release task.