(mkdir): Use pid_t instead of int; check status