Automatic detection of port on upload (resolve #15)