Correct an infinite loop when calling mkpath on absolute path
Better fix
Fix typo
Fix the fix (3c5614)