Fixed a couple of issues

I have been using Jopas for a while and had now some freetime to fix a couple of issues. Do you have time to check and possibly build new package for OpenRepos? I have tested building on latest (Alpha-1404) SDK version. With the RPM package I have tested fresh install and updating from old version (0.2.1) on latest version (1.0.5.19) of SailfishOS on actual Jolla device.