nvagent: add mkfullpath function to create subdirectory profile.