fixing bash scripts