Fixing bash if