Escapes Shell Arguments in Unit Tests

Uses escapeshellarg around all variables used in shell commands in
the unit tests to prevent against horrible things happening if they
are maliciously changed.