Use cmake -E instead of system commands