fix detection of real fstype:

returning pointer to in the scope char array bug