Check if target file exists