Finds the OS before importing stuff