Adjust if statement to use os family instead of OS