Correct some functions in base-image scripts returning bool value