Conditionally add profile
Retire option package.dottedname & instead use package.namespace & package.name to construct directory hierarchy correctly