Fixes switching cephfs mode based on the attribute

This should fix the problem with #163