This can be fixed by adding a cd /home/bwauth/torflow/NetworkScanners/BwAuthority before the command.