add support for bash which is not located at /bin/bash
fix a bug where symbolic links are not deleted when the targets ware deleted