Fixed operating system dependency check