Fix configure to handle user-defined absolute build directories.