Add sudo functional test and validate log file error message and data_folder error message, move function into according file, paver validate
Merge branch 'release/v2.1.1'