refactor: replace bash globbing with find and regex