use os.path.join to construct paths. fixes #10