Add path to debug messages
Use base path for opening directory