Create /tmp folder if not exists

The server thread fails when downloading theme from the npm registry, since it couldn't find the 'tmp' folder initially. 
The commit checks if `currentdir+'/tmp'` exists and creates if not.