Sparkfun Pocket AVR Programmer and PlatformIO

Does anybody know how to use them together? Thanks

http://docs.platformio.org/en/latest/platforms/atmelavr.html#upload-using-programmer

What was your configuration to get this to work?

If I run an avrdude command directly like this with the pocket programmer, it works:

avrdude -C avrdude.conf -c usbtiny -p atmega328p -b 38400 -e -U lfuse:w:0xF7:m -U hfuse:w:0xD6:m -U efuse:w:0xFD:m

Output:

avrdude: using SCK period of 10 usec
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e950f (probably m328p)
avrdude: erasing chip
avrdude: using SCK period of 10 usec

avrdude: processing -U lfuse:w:0xF7:m
avrdude: reading input file 0xF7 for lfuse
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte lfuse ...
avrdude: 1 byte of lfuse written
avrdude: verifying lfuse memory against 0xF7
avrdude: 1 byte of lfuse verified

avrdude: processing -U hfuse:w:0xD6:m
avrdude: reading input file 0xD6 for hfuse
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte hfuse ...
avrdude: 1 byte of hfuse written
avrdude: verifying hfuse memory against 0xD6
avrdude: 1 byte of hfuse verified

avrdude: processing -U efuse:w:0xFD:m
avrdude: reading input file 0xFD for efuse
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte efuse ...
avrdude: 1 byte of efuse written
avrdude: verifying efuse memory against 0xFD
avrdude: 1 byte of efuse verified

avrdude done.  Thank you.

However, if I try pio run -t fuses with PlatformIO and the following configuration (adapted from link above), it does not work:

[platformio]
default_envs = program_via_USBtinyISP ; Default build target

; Common settings for all environments
[env]
platform = atmelavr
framework = arduino
upload_protocol = usbtiny

[env:program_via_USBtinyISP]
platform = atmelavr
framework = arduino
upload_protocol = custom
upload_flags =
    -C
    ; use "tool-avrdude-megaavr" for the atmelmegaavr platform
    ${platformio.packages_dir}/tool-avrdude/avrdude.conf
    -p
    $BOARD_MCU
    -c
    usbtiny
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i

The errors I get are:

avrdude warning: cannot open USB device: Permission denied
avrdude error: cannot find USBtiny device (0x1781/0xc9f)
avrdude error: unable to open programmer usbtiny on port usb