cleanup detectos script, fix update detecting osx