Fixed bug with version requirements and variable checking