Fix #284 - use mkdir -p to create required dirs