buildrpm: adjust the way the dependencies are checked to make it more aware of the OS