Fix a fatal Fortran error (invalid unit number).
Submitted by: Stephen Hickmott <stephen (at) featplus.co.uk>