Construct Error object when calling it

To keep backtrace, line number and file name properties the error object
must be created when the error occured.
Previously the those properties were the line and file where you called the
"require".
Merge pull request #16 from Ajnasz/master

Construct Error object when calling it