Fixed bug in directory creation and collecting package keywords.