Fix #555, tweak sed pattern in build.sh to check dmd version properly for ldc merged-on-behalf-of: John Colvin <john.loughran.colvin@gmail.com>