Improved command dispatcher (for Paster commands)