Fixed bug causing seg fault if config.json was not present, added ubuntu dependencies for Ubuntu