profile: fix segfault when sources in root

	- Segfault was caused by incorrectly assuming that sources will
	  always be in a subdirectory (searching for '/' and parsing the
	  string following it). Fixes #9

Signed-off-by: Alberto Corona <alberto@0x1a.us>