Add option filter to return_dir_as_array()
Add option filter to return_dir_as_array()

- Add a 2nd parameter, default empty, that allows to pass a regex to
  filter files it'll return
- While I'm here, simplify code removinf $canadd var

NewEraCracker/pfsense,NewEraCracker/pfsense,phil-davis/pfsense,ptorsten/pfsense,ch1c4um/pfsense,ptorsten/pfsense,NOYB/pfsense,brunostein/pfsense,pfsense/pfsense,phil-davis/pfsense,ch1c4um/pfsense,ptorsten/pfsense,pfsense/pfsense,NOYB/pfsense,BlackstarGroup/pfsense,dennypage/pfsense,jxmx/pfsense,BlackstarGroup/pfsense,jxmx/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,NewEraCracker/pfsense,jxmx/pfsense,NewEraCracker/pfsense,phil-davis/pfsense,NOYB/pfsense,pfsense/pfsense,brunostein/pfsense,pfsense/pfsense,phil-davis/pfsense,dennypage/pfsense,dennypage/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,dennypage/pfsense,brunostein/pfsense