fixes successive calls to local build libraries script