Fixed it so that it works in other directories