Better handling of resource paths on Windows

References #40.