Fix #27 - Use configuration if passed

Use configuration if passed, otherwise find the default configuration 
from build setting