reworked check_os_dependency()