Fixed sync dir creation. Closes #17