Added the Package autodetectOs and setOs methods