Made the open serial in uploader.py optional

Also adjusted the build script accordingly.