made filtering out file types regex based instead of hard coded names.