Replace tempfile with echo for crontab input

Replace the usage of the tempfile for input to `crontab` command with a simple `echo` and a pipe. This probably solves #412.