fixed modify_in_file function ($position wasn't escaped)