use execpath for cross-platform path determination

Should allow for full cross-compilation. Also fixes #47.