Move some tests outside PS1, source functions.sh if readable