Cleaned up path resolution and added some options for temp folder and path to kindlegen