Fixes for the "Create Package Declaration" command.

1. Corrected escaping issue.
2. Fixed regex that determines the default directory to stop at (e.g. src, tst).