Changes HPHP version logic to handle nightly builds