fixed script for latest smarty download