Added Windows as OS where is possible to execute hostname.