Fixed building in debug mode

Locate files based on the configuration instead of the hard coded Release.