Made nugget stuff Linux-friendly

Note: may crap out on Windows now! Need to fix :(