Pass '--adb-port=' parameter and fix adb being 'undefined' for rebooting