Added OS detection and Ubuntu pre-implementation