Override installCode, updateCode and removeCode to support installing packages with excluded directories.