LU-2598 tests: add version check code to sanity test 180c

This patch adds Lustre version check codes into sanity test
180c and obdfilter-survey to make the tests work with servers
which do not have the patch of commit 25170d2.

Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes \
clientdistro=el6 serverdistro=el6 clientarch=x86_64 \
serverarch=x86_64 serverjob=lustre-b2_1 serverbuildno=164 \
testlist=sanity,obdfilter-survey

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: Iad7dddf21b223d78efcc285b13b9381e5f0e0ccd
Reviewed-on: http://review.whamcloud.com/5902
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>