Fix issue with '<reference path='file.ts'/>