updated plugin to work with bucketnames with dot and with foldernames

Hi,

I have updated plugin to work with bucket names with dot and with folder names.

Accept the pull, if you think its worth.

Ashwani.