Properly determine caller's dirname on Windows

The path includes the drive letter followed by :, which is the separator
we use to split the path.
Merge pull request #4 from frahugo/master

On windows, the start path for library loading is set to '.'