another hotfix

This:

* deletes an obsolete shell script
* fixes the `clean_stale_tasks` manager method, which was not adapted to use the new composite index on the Tasks model yet.