small bug fixed

	* moved check and creation for LOGDIR before check of cryptcmd