Added support for multiple package directories.