replaced glob with directoryiterator (glob doesn't work from inside phar)