Add Port selection at start up

Add code to determine if USB or external serial is used at start up,
based on configuration and power source