swap to use Directory.current instead of blocking IO call