Compile with the correct model directory