check null for relative path complete in define.js