Replaces relative path to absolute path in conf file generator

The $OUTPUTFILE value is broken if the base-dir is passed as . or ..
This patch replaces relative paths to absolute paths passed to base-dir and
adds validation to $BASEDIR/$PACKAGENAME.

Fixes bug #1204204

Change-Id: Iaec57b0e9a2d53e7a601fe551e6ec4fd55da24b7
Merge "Replaces relative path to absolute path in conf file generator"