Update secret folder.
Fixed issue when external git has a file in it by check if it is folder.
TODO: refine installed app auto detection by create a installed app class.