occamengine refactor to support fedora and ubuntu --stage1