added conditions for installing app
Added vanity
IMPORT MODULE instead of load source takes care of relative imports in most applications and caught exception if the template_name variable does not exist