Fixed bug when creating directory path and updated gem to version 1.0.2