when porting files from window to unix u must replace the CR+LF new line with LF. U can use the following command:
find . -name Root -or -name Entries -or -name Repository | xargs dos2unix