Fixed issues in cron execution during installation