debug variable interpolation

single quotes around file handle name were causing
variables names to be used rather than their values