Add configuration option to select SPA to use based on directory