(MODULES-1231) Fix apt::force locale issues

The current $install_check variable greps for 'Installed' or
'Candidate', which means that it will give the wrong results
when a non-English locale is used. This patch ensures that the
check will work properly for non-English locales.