make use app dir for temp and log folders