BG/Q FS troubles work-around

Work-around for the BG/Q filesystem problems that we have been experiencing. Also fixes a (tiny) memory leak in gauge_read.