clean up `walk` utils method and regex for gripping responses

use the `path` module to normalize file paths, refactor if statement.