add state option top template that allows absent

add state option that allows the file module to remove file.