bugfix of bash if directory exsits