Make cd function more powerfull