Fixed path generation. See issue #53.