Fixed dirname('/foo') on Windows (fixes #5)