change relative directory to absolute dir