fixed line endings for restore script