Add bin directory automatically and add temporary file