Add pre-configure execution.
Fix rubocop warnings.