Fix incorrect die on mkdir command return