Fix executable path detection, add absolute paths to resource files

This forces WaveBox to use the correct paths for resource files and themes, regardless of the working directory in which it is executed.