Bugfix, package manager: Ensure root is included in checks for non-writable directories