ubuntu: support target-dir for resource-file