Fix compatibility with old nix