Avoid deleting the whole current directory if can't cd