Tasks inherit working directory $HOME from the pvmd, unless you change it with host file option wd= (this is a per-host option). If you open files in a task to read or write, they will be in $HOME unless you specify an absolute or relative path (f.e. "src/glarp/input-file").