Fix directory creation and add github.com to known hosts