Replace deprecated keywords for lib

Changes:
 - Run KeyWord If is deprecated since Robot
   Framework version 5.*, use 'IF' instead

Tested:
 - Checked using robot dry-run to make sure the
   syntax is not broken

Change-Id: I4e1418fad55b736d35e47c1fca1175baaab2f0b4
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/lib/bmc_cleanup.robot b/lib/bmc_cleanup.robot
index 8040ead..e8ef2bd 100644
--- a/lib/bmc_cleanup.robot
+++ b/lib/bmc_cleanup.robot
@@ -37,5 +37,6 @@
     ...  find ${cleanup_dir_path} | wc -l
     Should Be True  ${file_count2} < ${file_count1}
     # Delete the directory if it is empty.
-    Run Keyword If  ${file_count2} <= 1
-    ...  BMC Execute Command  rm -r ${cleanup_dir_path}
+    IF  ${file_count2} <= 1
+        BMC Execute Command  rm -r ${cleanup_dir_path}
+    END