Support for 'single-instance' when app is started in folder

Fix #515
bump version to 0.8.7-rc3