changed system(“sh makepdfs”) to system(“bash makepdfs”) because makepdfs is a bash script