fixed a bug related to file open and path (related to requirement.txt tests)