Improve default package detection

+ Improve default package detection
+ Improve ability to create a package or class when no file opened or
opened file without project