Refactored the sample app to use ${basedir}

Refactored the sample app to use ${basedir}