$remote_revision was checked in 2 consecutive if()s. Merged them together with the only downside of running exec() twice.