updating here-dir finding block to 1-liner