detect windows instead of assuming it