fix deploy resource and recursive dir creation