Test for installation folder and creates it if needed

Fixes issue #662