I should add that all I want to do is make your current gem work on windows. If you want to rework this section of code, that's fine go ahead. If you're going to leave it as is, we need this fix in order to make it work properly on windows.

Whether or not you feel basename is proper here is beyond the scope of this request. It currently works that way so I didn't change it.