fix apt syntax for anchors (they don't need the starting #) and relative urls (the have to start with ./).