Use os.path.join instead of simple string appending; remove some accidentally committed debugging statements