getSource builds path instead of require statement