clean up config and remove unused .mk stuffs