fixing some order stuff for ubuntu 10.04

Yeah, it is a bit. I would say that we use 10.04 and transiting to 14.04 whereas 12.04 is more buggy dist than 10.04 or 14.04.
Also 10.14 repos are still being updated and as far as I know it has 6 years support, this hack is not a big mess. If it's possible to merge and keep for a while it would be better I think.