Added rebuilding one file functionality

Also now add will not force a rebuild if it the file
is found in the cache.