added option to take appname from folder if name is not given