Changed order of directory creation to allow git clone to happen first