check dir existance when doing packageBundle.List

check dir existance  when doing  `packageBundle.List`, to avoid `resources.List` error when package source dir is renamed or removed