use oc filesystem operations to calc the versions size

This makes sure that we can handle missing directories correctly

should fixes #5935 

cc @DeepDiver1975