ubuntu/debian startup script

This correct a bug about in the way the are dispatcher is run + a few clean ups