support spaces when detecting debug port