fix infinite recursion in File.__getattr__ reported in #264