refactored cron install script

Change-Id: Ibdcfdbefe5d086a46da9b0c28808efb72b7905b9