there is a small switch near the base (pivot) of your cars hand brake...if its accessible, check what state it is in?? while moving lever up or down does it change state or remain as it is.....
normally when you release the hand brake, the switch is in pressed state...i guess this should solve your problem