Fixed file does not exits, -i for sed to change the file, fixed begin/end_section functions