configure file modified

Configure file is modified to support detecting OS