Move cgi section to the bottom,so all required dirs could be created