bugfix
refactor
use $PROG for remote directory name