Add dirty flag override, move PREFIX to CONFIGURE_OPTIONS