Added steps that check whether specified file or directory exist.