Fxied a bug where if file\dir are removed then code tries to open the path and fails.
Currently fix is to remove the file\dir path from all instances. We would need to concider what happens when instances from multuple servers are in 1 file and might have same paths.