[ticket/989] add simple validation for $archive_var

http://www.flying-bits.org/tracker.php?p=33&t=989