refactored shell command to lineinfile