replace with enum type

Fixing the zfetch_dirn_t type is more readable and clear.