Make sure that cronfiles are also filtered with expandproperties if run under sudo

We noticed that cronfiles copied using the sudo method were not replace (which is rather logical).

This way they are first copied to a temporary directory in order to replace the variables in the files, then copied from there to the cron directory under sudo user.

@ngroot :)
Why would you want that? That doesn't feel right... It means changing original files in the repo :/