added $lastmod variable; now dirty tag implies last modification date
instead of last commit date
added deployment script