Only enhance/unshift tasks if they exist

We won't always have some build tasks defined, e.g. package:gem, so we should
only modify the them if they actually exist.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>