Minor fixes to install script

Creates local db folder when it doesn't exist and detects permission error when running gulp.