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

PX4/Pixhawk uploading worked without modifications, though I've added warnings about the user having incorrect permissions for serial port usage.
APM2.5 uploading needed some extra code to get working.
Also fixed up Linux build directories for debug/release builds