Autodetect install prefix if possible