Bug fixes, duplicates when packages are added.
Bug fixes.
Create dir when dir already exists bug fixes.