Fixed not to change the current working directory and added a spec file.