Add regression test for build order bug

/cc @adamhjk As requested. This is the same commit from https://github.com/opscode/omnibus-ruby/pull/150