oops, had broken this since we're inside a simple sftp job, not bash.