mod dir to full path