profiles: detect platform and architecture

	- Detect host's platform and architecture
	- Add population of profile data members based on host
	  information

Signed-off-by: Alberto Corona <alberto@0x1a.us>
gen: fix file list population

	- Correctly populate file list with approriate values, had
	  previously included the dirname
	- Correctly create a new config with doc end and start

Signed-off-by: Alberto Corona <alberto@0x1a.us>