fix lineinflile to remove regexp