make sure the iml file exists before attempting to parse/rewrite it.