Allow lib and import settings to be specified for evalModules
Fix compatibility with old nix