mkdir -p fixes edge case where directory is being created but intermediates don't exist