The problem is, that on most guitars the fingerboards has a slight rounding to them (that's what the radius of the fingerboard is about). That's why the pencil doesn't alway work - it won't bend enough.
Be careful not to tighten your makeshift-capo too much. You don't want to break something.
You can get a real capo for less then €2,-
Think about it.