Ruby script to normalize a file path