bashrc: New function to get the absolute path of a file on every platform

'abspath <file>' prints the resolved path of a file.

Motivation: 'readlink -f' and 'realpath' are not available on OS X.