applied Micha's suggestion to use os.path.join.