handles the case where extra new lines appear at the end of the index.php file