1314: fixing configure to detect when run by "source configure"