Even if there are versions available for other OSses:
- not every tail and head accept the same set of arguments
- you may not have a compiler available to compile new tools
- you may not able to install new software on the machine you're working,
- Since you're using backticks, you're relying on whatever shell you have available, environment variables, aliases, (...)
The safest way is to rely only on the Perl interpreter.