Fix a bug that can't trim white space on OS X

Replace \s with [:space:] so OS X sed(BSD sed) can't use PCRE style like '\s'.