build: Use project pathmap for recovery

Change-Id: I6339ac77b899a43db21261d587252b65cb58ad79
build: Fix pathmap derp

Change-Id: Ic6070a87fb552b60e761c6dd9c515b7785ea49cb
JustArchi's optimizations

Added JustArchi's optimizations and remove conditions. I usualy compile with all flags enabled
so its useless for me.
Those flags give better result by users reactions.

Signed-off-by: kecinzer <kecinzer@gmail.com>