Added missing dollar sign and refactored variable assigns

Added missing dollar sign to variable name. It was assumed as string and the input would always have that as value. Because of that password protected files would always be forced to download.

I also changed `$force` variable assigns to booleans, previously it was assigned as `true`, `1` or `0`.