made createDirectory also create a Bucket if it didn't already exist.