Correct the directory to full path