idk if that helps, but you can get the name of the currend directory with pwd or basename... if you're using shell commands. idk how all that works for you