Changed HDBG_EXPORT macro to HDBG_API
Support current-dir for dbg_exec