small changes and fixes for several drush scripts