Update makefreepto

Fix bug reported on #10 and #15