Linux: Firmware uploading now works. Minor build directory fixes too