correct type of .profile

Somehow the first fix was not working. So we manually get rid of
dos/windows cr/lf with tr command