Put file info into temporary variable. Fixes #136
simply of @19fb90d8