Fix for issue #10 "em g:scaffold resource fails"

Fixed the regex used. In the original, the period wasn't escaped. I also made the semicolon optional with the ? operator since not everyone uses them.