"Multiple" attribute should be applied when maxFiles > 1

If maxFiles is one the user should only be able to select one file from dialog.
Also fixed Gruntfile errors