Fix some issues when working from a subfolder.
Wrap spawn in try-catch so it doesn't throw uncaught exception at top level.
Version 0.14.3