Update profiler.rb

Updated the path settings to work within engines as change not merged into master branch.