Fix pwd display when there are whitespaces in the path