resolves #1266 for node-webkit usage by using string concatenation on baseUrl and destination when the baseUrl begins with file://