SshMachineLocation closes resources and in finally block
Fix isLinux test in BasicOsDetails and apply other review comments