test for pwd before calling functions.sh