check for empty string in mkdir / error checking in process