FindOrCreate and CreateBucket using same code

moved the code for creating a bucket to _createBucket