autogen clean script, minor changes for OSX autogen script