fs: improve logic for rename/rm*/mk* operations