Fixes indentation and stringifies path separator outside the for loop