improve and fix: test icon file existence during execution but not initialization

Also, fix error when icon is a long path with spaces in it.