changed lininfile to be safer by writing to temp file and moving into place
instead of writing directly to original
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
Merge pull request #2860 from bcoca/lininfile_safe

makes lineinfile a bit safer by using atomic rename