Add tests for path matching
Only check if paths are writable if the "save" setting is enabled
Do not modify $_ in map block