Refactor ChibiOS directory to variable.