ruby directory fix.