Refactor spaces repo to use common find func

Signed-off-by: Damien Le Berrigaud <damien@pivotallabs.com>