Update scheduler rake task

The scheduler rake task needed an update due to the refactoring. There
was also a typo at the line retrieving the snapshot date if it is set.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>