Change task rule based on build_dir so main rules don't clobber gem rules.
Merge pull request #825 from carsonmcdonald/gembuildfix

Change task rule based on build_dir so main rules don't clobber gem rules