Append a truncated hash to prevent case issues in case insensitive fs.

https://github.com/bower/bower/issues/859

Along with the fix, the diff contains minor coding standard fixes.

//cc @svnlto