Fix ruby/perl/python directory creation