Node: Check target file out of source control