restore line endings to LF and remove absolute path