Autotools: Add method to retrieve default build dir based on project file

Change-Id: Ifd5af5c69329d2b9c86da8c8df796f317c65e1ee
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>