use a sourced file for some vars (test for it); change location and assumptions for some files and dirs