Update octopus.rb

File path addition done using File object rather than manipulating string