Fix a bug which caused builds to fail if ADD was the first command