Fix issue with WORKSPACE definition not working

check if defined WORKSPACE instead of (value of WORKSPACE)