[BUILD] fixing bash errors