ejudge scripts: 1) add expiration time for sessions; 2) create temp directory if not exist