Respect rebuild option

I found that the rebuild option did not do anything. This is just to actually use it.
Yeah, rebuild should be done whenever the version changes since the headers change and native modules should be recompiled against them, otherwise it shouldn't really be needed.

@zcbenz do you remember if `rebuild` was originally meant to force a rebuild each time or instead just to enable rebuild when the version changes?