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