Include local_mode in datacenter detection
Move operatingsystem specifics to bottom
cosmetics