distinguish between file dependent shares and other shares

fixes failing unit tests on master and stable7

cc @DeepDiver1975 @PVince81