 		paths[0]
 
 	getSourcePaths = (cwd, src) ->
-		grunt.file.expand("#{cwd}#{src}").map (filePath) ->
-			filePath.substr cwd.length
+		grunt.file.expand({cwd}, src).map (filePath) ->
+			filePath
 
 	writeApp = (file, cwd, modules) ->
 		mods = []

		shim[app] = deps: [angular].concat(mods)

		source.forEach (sourcePath) ->
			shim[sourcePath] = deps: [angular].concat(mods, app)

		template = grunt.file.read "#{__dirname}/templates/main.coffee"
		compiled = grunt.template.process template, data: config: shim: JSON.stringify(shim), loads: JSON.stringify(loads)

		writeBootstrap bootstrapPath, cwd

		shim = {}
		shim[angular] = deps: []

		mods.forEach (modulePath) ->
