Added the ability to restrict cronjobs to a certain environment