Only error if variable already exist
Added test of filename with spaces
Also test space in file name
Fixed a minor bug
Added option to only open quickfix window on error

Use
  let g:latex_quickfix_open_on_warning=0
to prevent vim-latex to open quickfix window if there are only warnings.