Move common filepath.Walk to main.go