fixed a problem when there are no controller/view/style/model directory
fixed look up to the 2nd hierarchy