Fixing bash if statement when sshing.