Fix whitespace handling in configure script
Fix shell escaping in unit tests