Fix ubuntu script to work with old+new style configure