Fixing two Bugs

Hi,

i fixed the Bugs someone described here: https://github.com/aspiers/opensuse-spotify-installer/issues/23 

My solution is close to the solution someone proposed in post #3 on the issue-tracker above.

Cheers,
Jonas