Modified the last change to use os.path.join to build the whole path.