Update snap-in-compiler/snapin-creator.sh

Fix argument handling and eliminate a needless fork.
Merge pull request #1 from ormaaj/patch-1

Update snap-in-compiler/snapin-creator.sh