Fix #269: The Profile#setConfiguration api looses the layout of configuration files
Additional correction for #269