fix rule conditions (manifest keys), fix coffe client scripts (subdirectories like 'lib')