doc: Fix installing manpages

During a bug in extracting man section, manpages were installed in wrong
location. This commit fixes it.

Change-Id: If43415638405afb61586a973d80ff8f3ec71d31d