fix determining the sphinx source url and the configuration flags.

In the attrubites file we cannot use an attribute on setting another attribute if we want a flexible variable. In this case we will get the solid value for attribute.
create a directories for the log files.