Respect rebuild option

I found that the rebuild option did not do anything. This is just to actually use it.
Should this be an `or` instead of an `and` so that setting `rebuild: true` *always* rebuilds?