apply realpath when using pipeline dir