nvagent: give the profile name to agent_config_get_fullname directly
mkfullpath do not care if mkdir fail, we stat() twice to check
code cleanup