Fixed new line issue for data directory