Easy upwards directory traversal in Ruby