Fix check_tmpdir_executable for Linuxbrew
Fix check_tmpdir_executable for Linuxbrew

Fix the error: Text file busy

Closes Linuxbrew/linuxbrew#775

maxim-belkin/brew,maxim-belkin/brew,Linuxbrew/brew,hanxue/linuxbrew,Linuxbrew/brew,rwhogg/brew,maxim-belkin/brew,Linuxbrew/brew,rwhogg/brew,Linuxbrew/brew,hanxue/linuxbrew,rwhogg/brew,hanxue/linuxbrew