Added logic to chmod +x on newly created conf files.  Also added file.close().  Supports #149.