adding shell switching
fix gnome terminal error: trying to shutil.rmtree a symlink