fixed #35, use sed to delete all text after profile id

for files transfered from windows, there might be an ^M character at the end of each line
Merge remote-tracking branch 'origin/master'