Deprecate COMPILER variable.
Improve shell compability by conforming to POSIX (more).