cleaned up shell script for cron.