* fix issue with changing working directory to non existing directory or to file
*