Use folder to autodetect project namespace

Also, emit a warning