You can use the `buildpath` method instead of saving the value of `Dir.pwd`.