fix running as "gerar.php filename"