Adding more portable cdpath solution