make sure the extname is starts with "."

loader.load expects `option.extname` to be startswith "." 
add some check code to ensure it.