Changed the way how deployed portlet names are fetched, added a workaround for directories in the war's lib directory.