Expand ~ in PATH entries
Just use each since we're returning from inside the block
Escape paths in regexps