modified Makefile to allow out of tree build with custom config file

This change is related to #111. It allows to create custom ``config`` file and perform out of tree build.