Creating path files from ruby properly.