Move colors to common funcions.sh and fix bug with sourcing

Source apparently wants an absolute path to the file