determine spike path if not exported

Signed-off-by: Mattias Andrée <maandree@operamail.com>