main: reorganize workarea lookup and default 'hwaf' command handling