 	###
 	getSnapshotBin: () ->
 		snapshotExecutable = if @platform is 'win' then 'nwsnapshot.exe' else 'nwsnapshot'
-		folder = if @platform is 'linux' then "node-webkit-v#{@version}-#{@platform}-#{@arch}" else ""
+		folder = @getZipSubFolder()
 		path.join @getLocalPath(), folder, snapshotExecutable
 
 	###

	# @api public
	###
	getNwBin: () ->
		switch @platform
			when 'win'
				path.join @getLocalPath(), 'nw.exe'
			when 'osx'
				path.join @getLocalPath(), 'node-webkit.app', 'Contents', 'MacOS', 'node-webkit'
			when 'linux'
				path.join @getLocalPath(), "node-webkit-v#{@version}-#{@platform}-#{@arch}", 'nw'

	###
	# Downloads the node-webkit archive.

		path.join __dirname, '..', @binFolder, @version, "#{@platform}-#{@arch}"

	###
	# Returns the subfolder of the zip where the files are located, if it exists.
	# In 0.10.0 node-webkit switched their win and osx zip structure to match the linux ones.
	#
	# @return {String}
	# @api public
	###
	getZipSubFolder: () ->
		frags = @version.split('.')
		major = parseInt frags[0]
		minor = parseInt frags[1]
		if @platform is 'linux' or (major is 0 and minor > 9) or (major > 0) 
			"node-webkit-v#{@version}-#{@platform}-#{@arch}" 
		else 
			""

	###
	# Returns the local path to the snapshot binary.
	# NOTE: The binary might not exist, see verifyBinaries().
	#
