Corrected writable paths for loop to split on newlines