Replace tempfile with usage of echo and pipe

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