Two minor fixes for installer

Signed-off-by: ziycon <ziycon.eire@gmail.com>