Improve config file search
Fix compiler warnings
Ensure ~/bin and ~/scripts are added to the exec path