error check for .temp dir