Implement file deduplication in packages and more work on automatic packager