Fix bug with '-e' flag in linux