Fixed Ubuntu script, can run multiple times.