This makes the commonHook option work also for (read-only) Nix store paths. Currently it fails on the second activation, because the destination is read-only.