better ubuntu late command handling