Remove useless things and create working directory