JRuby can't open the "." dir, so just stat, chmod, chown directly.