makefiles: Treat all directories the same way in configure.