fix dir creation and rev sha