Clean up checks to avoid db connection on precompile

We still need to deal with the Preference / Config issue as stated in #3833
Bump awesome_nested_set

Get fix to avoid touching the database on assets precompile