Create portability.sh

For command portability in different platforms