diff --git a/Build.hs b/Build.hs
--- a/Build.hs
+++ b/Build.hs
@@ -75,8 +75,8 @@
     contents <- getDirectoryContents path
     fmap concat $ mapM go contents
   where
-    go ('.':_) = return []
-    go "dist" = return []
+    go ('.':_)     = return []
+    go ('d':"ist") = return []
     go x = do
         let y = path ++ '/' : x
         d <- doesDirectoryExist y
@@ -141,7 +141,7 @@
 getFolderContents fp = do
     cs <- getDirectoryContents fp
     let notHidden ('.':_) = False
-        notHidden "tmp" = False
+        notHidden ('t':"mp") = False
         notHidden _ = True
     fmap concat $ forM (filter notHidden cs) $ \c -> do
         let f = fp ++ '/' : c
diff --git a/scaffold/Foundation.hs.cg b/scaffold/Foundation.hs.cg
--- a/scaffold/Foundation.hs.cg
+++ b/scaffold/Foundation.hs.cg
@@ -84,8 +84,8 @@
         mmsg <- getMessage
         pc <- widgetToPageContent $ do
             widget
-            addCassius $(Settings.cassiusFile "default-layout")
-        hamletToRepHtml $(Settings.hamletFile "default-layout")
+            addCassius $(cassiusFile "default-layout")
+        hamletToRepHtml $(hamletFile "default-layout")
 
     -- This is done to provide an optimization for serving static files from
     -- a separate domain. Please see the staticRoot setting in Settings.hs
diff --git a/scaffold/Settings.hs.cg b/scaffold/Settings.hs.cg
--- a/scaffold/Settings.hs.cg
+++ b/scaffold/Settings.hs.cg
@@ -85,15 +85,22 @@
 loadConfig env = do
     allSettings <- (join $ YAML.decodeFile ("config/settings.yml" :: String)) >>= fromMapping
     settings <- lookupMapping (show env) allSettings
-    portS <- lookupScalar "port" settings
     hostS <- lookupScalar "host" settings
+    port <- fmap read $ lookupScalar "port" settings
     connectionPoolSizeS <- lookupScalar "connectionPoolSize" settings
     return $ AppConfig {
       appEnv = env
-    , appPort = read portS
-    , appRoot = pack (hostS ++ ":" ++ portS)
+    , appPort = port
+    , appRoot = pack $ hostS ++ addPort port
     , connectionPoolSize = read connectionPoolSizeS
     }
+    where
+        addPort :: Int -> String
+#ifdef PRODUCTION
+        addPort _ = ""
+#else
+        addPort p = ":" ++ (show p)
+#endif
 
 -- Static setting below. Changing these requires a recompile
 
diff --git a/scaffold/hamlet/boilerplate-layout.hamlet.cg b/scaffold/hamlet/boilerplate-layout.hamlet.cg
--- a/scaffold/hamlet/boilerplate-layout.hamlet.cg
+++ b/scaffold/hamlet/boilerplate-layout.hamlet.cg
@@ -1,10 +1,10 @@
-\<!doctype html>M
-\<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->^M
-\<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->^M
-\<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->^M
-\<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->^M
+\<!doctype html>
+\<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
+\<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
+\<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
+\<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
 \<!--[if (gt IE 9)|!(IE)]><!-->
-<html lang="en" class="no-js"><!--<![endif]-->^M
+<html lang="en" class="no-js"><!--<![endif]-->
     <head>
         <meta charset="UTF-8">
         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@@ -20,7 +20,7 @@
       
         <!--[if lt IE 9]>
         <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
-        <![endif]-->^M
+        <![endif]-->
 
         <script>
           document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/,'js');
diff --git a/scaffold/tiny/Foundation.hs.cg b/scaffold/tiny/Foundation.hs.cg
--- a/scaffold/tiny/Foundation.hs.cg
+++ b/scaffold/tiny/Foundation.hs.cg
@@ -70,8 +70,8 @@
         mmsg <- getMessage
         pc <- widgetToPageContent $ do
             widget
-            addCassius $(Settings.cassiusFile "default-layout")
-        hamletToRepHtml $(Settings.hamletFile "default-layout")
+            addCassius $(cassiusFile "default-layout")
+        hamletToRepHtml $(hamletFile "default-layout")
 
     -- This is done to provide an optimization for serving static files from
     -- a separate domain. Please see the staticroot setting in Settings.hs
diff --git a/scaffold/tiny/Settings.hs.cg b/scaffold/tiny/Settings.hs.cg
--- a/scaffold/tiny/Settings.hs.cg
+++ b/scaffold/tiny/Settings.hs.cg
@@ -67,13 +67,20 @@
 loadConfig env = do
     allSettings <- (join $ YAML.decodeFile ("config/settings.yml" :: String)) >>= fromMapping
     settings <- lookupMapping (show env) allSettings
-    portS <- lookupScalar "port" settings
     hostS <- lookupScalar "host" settings
+    port <- fmap read $ lookupScalar "port" settings
     return $ AppConfig {
       appEnv = env
-    , appPort = read portS
-    , appRoot = pack (hostS ++ ":" ++ portS)
+    , appPort = port
+    , appRoot = pack $ hostS ++ addPort port
     }
+    where
+        addPort :: Int -> String
+#ifdef PRODUCTION
+        addPort _ = ""
+#else
+        addPort p = ":" ++ (show p)
+#endif
 
 -- | The location of static files on your system. This is a file system
 -- path. The default value works properly with your scaffolded site.
diff --git a/yesod.cabal b/yesod.cabal
--- a/yesod.cabal
+++ b/yesod.cabal
@@ -1,5 +1,5 @@
 name:            yesod
-version:         0.9.1
+version:         0.9.1.1
 license:         BSD3
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
@@ -62,7 +62,7 @@
         cpp-options:     -DGHC7
     else
         build-depends:   base                  >= 4        && < 4.3
-    build-depends:   yesod-core                >= 0.9      && < 0.10
+    build-depends:   yesod-core                >= 0.9.1.1  && < 0.10
                    , yesod-auth                >= 0.7      && < 0.8
                    , yesod-json                >= 0.2      && < 0.3
                    , yesod-persistent          >= 0.2      && < 0.3
