Make absolutePath function work on Windows.

Thanks to @Cwallice for reporting this problem!

Closes #54.