Fix for correct icons not showing up. 

Was always using the default icon because expandPath() was given incorrect path.