Only declare code directory if not already declared.