Added path.normalize to utils.walk method.

Organized logic and cleaned up whitespace in utils.walk.