Added a permission check on all paths, that need to be writeable.