Fix IOError issue introduced in #14, Clone repo before loading_settings