Fixing bash syntax error