Fixing cd to work on linux