Update controller.rb

fixed to produce a valid path for a file in a jar root
Update controller.rb

Did I get it right?
Update controller.rb

Did I get any close to what you asked? :)
Merge pull request #77 from jjgh/patch-1

Update controller.rb