Updated configure to remove build directory