Perform some checks for a temp directory.