An attempt to replicate the unix command find