fixes publish to $PUBLISHDIR