naive directory scanning regexp