Updated build script to remove leading and trailing whitespaces, as well as comments beginning with REM instead of single quote.