diff --git a/tasks/bower-concat.js b/tasks/bower-concat.js
index <HASH>..<HASH> 100644
--- a/tasks/bower-concat.js
+++ b/tasks/bower-concat.js
@@ -194,7 +194,7 @@ module.exports = function(grunt) {
 
 			// Main file explicitly defined in bower_concat options
 			if (mains[name]) {
-				var componentDir = meta && meta.canonicalDir || path.join(bowerDir, component);
+				var componentDir = meta && meta.canonicalDir || path.join(bowerDir, bower.config.directory, name);
 				var manualMainFiles = ensureArray(mains[name]);
 				manualMainFiles = _.map(manualMainFiles, joinPathWith(componentDir));
 				grunt.verbose.writeln('Main file was specified in bower_concat options: ' + manualMainFiles);
Temporary workaround for mainFile option not working if mainfile is actually present