Fix check to reload overrides in dev on rails 4

This should fix the issue described in https://github.com/spree/spree/issues/3536