fixed config script for osx and subsystem.