Fixed 'Exists' task so that it performs token replacement.