Stop using a static buffer to read from tunefile and correct errno use while doing the same (resolves #17)