Problem with preflight script removing file