Add logging for current directory attempt