Get current dir dynamically