Now the script re-calculates configDir to return a up-to-date value.