My experience with this, and forgive me if it's not related, is that -c '~/dir' isn't expainding the tilde. To fix this, I've had to replace the tilde with the actual homedir of my user.
My experience with this, and forgive me if it's not related, is that -c '~/dir' isn't expainding the tilde. To fix this, I've had to replace the tilde with the actual homedir of my user.