modify script for remove unnecessary proprietary files