Don't match extension in createShortened() for dot-files (.hidden)
Check ext length explicitly in createShortened when checking path length
Remove unnecessary var