Add check_installed method to redhat/base/package
Move check_os method from backend/exec to helper/os