bmp: Use temporary folder

This is mandatory for parallel build; otherwise, multiple bmp running step on
each other's toes.

While at it, add 'set -e' to catch errors.

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>