Moved to better userscript generation approach (using fat jar); getting ami from the distribution; minor fixes