don't depend on the path including '.' for mkdev.