And you wont get ```path/to/file/../anotherfile``` anywhere. As the ```expand_path``` method uses real path internally it always gets fully expanded.